#ifndef BOBJECT_H
#define BOBJECT_H
#include <AThread.h>

class BObject : public QObject
{
    Q_OBJECT
public:
    BObject()
    {
        connect(&thread, SIGNAL(sig(QString)), this, SLOT(show(QString)));
    };
    ~BObject(){};

signals:

public slots:
    void slot(const QString &s)
    {
        qDebug() << "BObjcet slot(triged from main) from thread:" << QThread::currentThreadId();
        thread.slot(s);
    }
public slots:
    void show(const QString &s)
    {
        qDebug() << "BObjcet show(triged form thread) from thread:" << QThread::currentThreadId() << s;
    }


private:
    AThread thread;
};
#endif
